Dreamweaver Article

Migrating from Microsoft FrontPage to Macromedia Dreamweaver MX 2004


Table of Contents

  1. Introduction
  2. Introducing the Dreamweaver Workspace
  3. Streamlining Your Workspace
  4. Setting Up a Web and Managing Files
  5. Working with Text
  6. Working with Styles and Style Sheets
  7. Working with Images
  8. Creating Links
  9. Creating Tables
  10. Using Layout Mode to Position Text and Images
  11. Using Predesigned Pages to Get a Head Start
  12. Making Quick Edits to Code
  13. Working in Code View
  14. Editing Code in Code View
  15. Customizing Your Coding Environment
  16. Taking the Next Steps

Making Quick Edits to Code

Dreamweaver lets you visually create and edit web pages without worrying about the underlying source code, but there are times when you might need to edit the code for greater control or to troubleshoot a page. Dreamweaver lets you edit some code while working in Design view.

You can use the tag selector to quickly select code you want to edit. The tag selector is in the status bar at the bottom of the Document window and shows a series of tags, as follows:

The tag selector

Figure 36. The tag selector

Note: FrontPage 2003 introduced a Quick Tag Selector that serves the same purpose as the tag selector in Dreamweaver,

To quickly select a tag in Design view:

  1. Click in the document in Design view.

    The tags that apply at the insertion point appear in the tag selector.

  2. Click the tag you want in the tag selector to select it, or right-click the tag to display a number of editing options.

    The tag selector contextual menu

    Figure 37. The tag selector contextual menu

You can use the Quick Tag Editor to quickly inspect and edit HTML tags without leaving Design view.

Note: FrontPage 2003 introduced a Quick Tag Editor that’s called the same thing and serves the same purpose as the one in Dreamweaver.

To quickly edit a tag using the Quick Tag Editor:

  1. Do one of the following:

    • Select a tag-based object in Design view and press Control-T.
    • Right-click a tag in the tag selector and select Edit Tag from the pop-up menu.
    • The Quick Tag Editor opens in Edit Tag mode.

      Figure 38.

      Figure 38.

  2. Enter new attributes, edit existing attributes, or edit the tag’s name. You can press Tab to move forward from one attribute to the next; press Shift-Tab to move back.
  3. When you’re done, press Enter.
  4. To exit without making any further changes, press Escape.

You can also edit tags in a property sheet similar to the ones found in integrated development environments (IDEs) such as Microsoft Visual Studio. In Dreamweaver, this property sheet is part of the Tag inspector.

To quickly edit a tag in the Tag inspector:

  1. Open the Tag inspector (Window > Tag Inspector).
  2. Select a page element in Design view by either clicking it directly or clicking the corresponding tag in the tag selector.

    If the element has attributes, Dreamweaver displays them and their current values in the Tag inspector’s property sheet.

    The tag inspector

    Figure 39. The tag inspector

  3. Make the changes to the attributes in the property sheet. Click an attribute to type a value or, if the attribute takes predefined values, select one from a list. You can also change any CSS style applied to the element by clicking the Relevant CSS tab in the Tag inspector and selecting the CSS rule you want to modify.
  4. Click elsewhere in the panel or press Enter to update your page.